﻿namespace Charades.Web.Hubs
{
	using Charades.Web.Server;
	using Microsoft.AspNet.SignalR;

	public abstract class BaseHub : Hub
	{
		protected BaseHub() : this(Game.Instance) { }

		protected BaseHub(Game game)
		{
			Game = game;
		}

		public Game Game { get; set; }

		public void Ping(dynamic message)
		{
			Clients.All.Pong(message);
		}
	}
}